﻿using System;
using System.Windows;

namespace Mido.Utils.Logging
{
    internal static class Logger
    {
        internal static void Log(Exception exception)
        {
            LogWindowModel model = new LogWindowModel(exception);
            LogWindowViewModel viewModel = new LogWindowViewModel(model);

            LogWindow window = new LogWindow
            {
                Owner = Application.Current.MainWindow,
                DataContext = viewModel
            };

            window.ShowDialog();
        }
    }
}
